let app = getApp()
Component({
  data: {},
  properties: {
    navList: Array
  },
  methods: {
    chooseVideoFile(e) {
      wx.chooseVideo({
        sourceType: ['album', 'camera'],
        maxDuration: 60,
        camera: 'back',
        success(res) {
          app.data.fileInfo = res
          app.data.isFileUplaod = true
          console.log(res)
          // wx.switchTab({
          //   url: '/pages/transfer/transfer'
          // })
        }
      })
      // wx.chooseMessageFile({
      //   success(res) {
      //     console.log(res)
      //     app.data.fileInfo = res
      //     app.data.isFileUplaod = true
      //     // wx.switchTab({
      //     //   url: '/pages/transfer/transfer'
      //     // })
      //   }
      // })
    },
    chooseImageFile(e) {
      console.log(e)
    },
    chooseMusicFile(e) {
      console.log(e)
    },
    chooseDocuFile(e) {
      console.log(e)
    },
    chooseOtherFile(e) {
      console.log(e)
    }
  }
})